using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
namespace Bussiness.Entity
{
                

     public class PT_Service_ModelEntity:AF_ORM.CORE.BaseEntity
    {
         public PT_Service_ModelEntity()
         {
             tableName = "PT_Service_Model";


			 fieldInfos.Add(new FieldInfo("PT_Service_Model","AgentPrice","Giá tính tiền công thợ","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Service_Model","Id","Id","int",0,true,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Service_Model","ModelCode","ModelCode","string",50,false,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Service_Model","Price","Giá bán","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Service_Model","ServiceCode","ServiceCode","string",50,false,false,false,false,"","",""));
         }
       //properties
                    
		 protected double m_AgentPrice;
		 protected int m_Id;
		 protected string m_ModelCode;
		 protected double m_Price;
		 protected string m_ServiceCode;

		 public double AgentPrice

          { 
                get { 
                    return m_AgentPrice;}

                set{m_AgentPrice=value;

                    GetField("AgentPrice").Set();
                    GetField("AgentPrice").IsNull=(value == null);           
                    }
          }
		 public int Id

          { 
                get { 
                    return m_Id;}

                set{m_Id=value;

                    GetField("Id").Set();
                    GetField("Id").IsNull=(value == null);           
                    }
          }
		 public string ModelCode

          { 
                get { 
                    return m_ModelCode;}

                set{m_ModelCode=value;

                    GetField("ModelCode").Set();
                    GetField("ModelCode").IsNull=(value == null);           
                    }
          }
		 public double Price

          { 
                get { 
                    return m_Price;}

                set{m_Price=value;

                    GetField("Price").Set();
                    GetField("Price").IsNull=(value == null);           
                    }
          }
		 public string ServiceCode

          { 
                get { 
                    return m_ServiceCode;}

                set{m_ServiceCode=value;

                    GetField("ServiceCode").Set();
                    GetField("ServiceCode").IsNull=(value == null);           
                    }
          }

}
}
